﻿#region Using Statements
using System;
using System.Threading;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System.Collections.Generic;
#endregion

namespace ProjectNocturnalFool
{
    class Entity
    {
        #region Fields
        public Point onTile { get; set; }

        #endregion

        #region Constructor
        public Entity(Point e)
        {
            onTile = e;
        }
        #endregion

        #region Methods
        
        #endregion

        #region Update
        public void Update(GameTime gametime) { 
         //HACK just to move around
           
            if(InputMgr.Instance.IsButtonPress(PlayerIndex.One, Input.Right)){
                onTile = GameLogic.Instance.gameBoardLogic.tiles.getUpR(onTile, 1);
            }
            if (InputMgr.Instance.IsButtonPress(PlayerIndex.One, Input.Left))
            {
                onTile = GameLogic.Instance.gameBoardLogic.tiles.getUpR(onTile, -1);
            }
            if (InputMgr.Instance.IsButtonPress(PlayerIndex.One, Input.Up))
            {
                onTile = GameLogic.Instance.gameBoardLogic.tiles.getUpL(onTile, 1);
            }
            if (InputMgr.Instance.IsButtonPress(PlayerIndex.One, Input.Down))
            {
                onTile = GameLogic.Instance.gameBoardLogic.tiles.getUpL(onTile, -1);
            }


        }
        #endregion

    }
}
